// Name:            Link
// Description:     Styles for links
//
// Component:       `uk-link-muted`
//                  `uk-link-text`
//                  `uk-link-heading`
//                  `uk-link-reset`
//
// ========================================================================


// Variables
// ========================================================================

$link-muted-color:                               $global-muted-color !default;
$link-muted-hover-color:                         $global-color !default;

$link-text-hover-color:                          $global-muted-color !default;

$link-heading-hover-color:                       $global-primary-background !default;
$link-heading-hover-text-decoration:             none !default;


/* ========================================================================
   Component: Link
 ========================================================================== */


/* Muted
 ========================================================================== */

a.uk-link-muted,
.uk-link-muted a {
    color: $link-muted-color;
    @if(mixin-exists(hook-link-muted)) {@include hook-link-muted();}
}

a.uk-link-muted:hover,
.uk-link-muted a:hover {
    color: $link-muted-hover-color;
    @if(mixin-exists(hook-link-muted-hover)) {@include hook-link-muted-hover();}
}


/* Text
 ========================================================================== */

a.uk-link-text:not(:hover),
.uk-link-text a:not(:hover) {
    color: inherit;
    @if(mixin-exists(hook-link-text)) {@include hook-link-text();}
}

a.uk-link-text:hover,
.uk-link-text a:hover {
    color: $link-text-hover-color;
    @if(mixin-exists(hook-link-text-hover)) {@include hook-link-text-hover();}
}


/* Heading
 ========================================================================== */

a.uk-link-heading:not(:hover),
.uk-link-heading a:not(:hover) {
    color: inherit;
    @if(mixin-exists(hook-link-heading)) {@include hook-link-heading();}
}

a.uk-link-heading:hover,
.uk-link-heading a:hover {
    color: $link-heading-hover-color;
    text-decoration: $link-heading-hover-text-decoration;
    @if(mixin-exists(hook-link-heading-hover)) {@include hook-link-heading-hover();}
}


/* Reset
 ========================================================================== */

/*
 * `!important` needed to override inverse component
 */

a.uk-link-reset,
a.uk-link-reset:hover,
.uk-link-reset a,
.uk-link-reset a:hover {
    color: inherit !important;
    text-decoration: none !important;
    @if(mixin-exists(hook-link-reset)) {@include hook-link-reset();}
}


// Hooks
// ========================================================================

@if(mixin-exists(hook-link-misc)) {@include hook-link-misc();}

// @mixin hook-link-muted(){}
// @mixin hook-link-muted-hover(){}
// @mixin hook-link-text(){}
// @mixin hook-link-text-hover(){}
// @mixin hook-link-heading(){}
// @mixin hook-link-heading-hover(){}
// @mixin hook-link-reset(){}
// @mixin hook-link-misc(){}


// Inverse
// ========================================================================

$inverse-link-muted-color:                         $inverse-global-muted-color !default;
$inverse-link-muted-hover-color:                   $inverse-global-color !default;
$inverse-link-text-hover-color:                    $inverse-global-muted-color !default;
$inverse-link-heading-hover-color:                 $inverse-global-primary-background !default;



// @mixin hook-inverse-link-muted(){}
// @mixin hook-inverse-link-muted-hover(){}
// @mixin hook-inverse-link-text-hover(){}
// @mixin hook-inverse-link-heading-hover(){}
